package org.lex.dbq.util;

import java.util.concurrent.atomic.AtomicLong;

public class Ids {
	private static final AtomicLong id = new AtomicLong();

	public static synchronized String next() {
		StringBuilder buf = new StringBuilder();
		buf.append(System.currentTimeMillis()).append('-');
		buf.append(id.incrementAndGet());
		return buf.toString();
	}
}
